﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CQIE.TES.Model;

namespace CQIE.TES.IDAL
{
    public interface ITeacherDAL
    {
        void test();

        void testdel();

        List<Teacher> GetTeachersPage(int pageNum, int pageSize, string search,out int count);

        Teacher FindById(int id);

        bool FreezeUser(int id);

        void ResetPassWord(int id);

        List<Teacher> GetAllTeachers();

        void InsertTeacher(int sex,string teacherName, DateTime age, string workNumber, string phone, int role, string info);

        void Updata(int id, int sex, string teacherName, string workNumber, string phone, int role, string info);
        List<Teacher> GetDepartMentTeachers(int uid);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Teacher Login(string username, string password);

        List<Teacher> SearchByName(string name);
    }
}
